import { request } from "@/utils/service"

/** 查询系统菜单列表 */
export function getMenuListApi(data: any) {
  return request({
    url:"/system/menu/list",
    method: "POST",
    data
  })
}

/** 查询单个菜单 */
export function getMenuApi(data: any) {
  return request({
    url:"/system/menu/get",
    method: "POST",
    data
  })
}


/** 新增菜单 */
export function addMenuApi(data: any) {
  return request({
    url:"/system/menu/add",
    method: "POST",
    data
  })
}
/** 修改菜单 */
export function editMenuApi(data: any) {
  return request({
    url:"/system/menu/update",
    method: "POST",
    data
  })
}
/** 删除菜单 */
export function delMenuApi(data: any) {
  return request({
    url:"/system/menu/delete",
    method: "POST",
    data
  })
}
/** 菜单树 */
export function treeMenuListApi(data:any) {
  return request({
    url:"/system/menu/treeselect",
    method: "POST",
    data
  })
}

/** 接口列表 */
export function getMenuUrlListApi() {
  return request({
    url:"/system/menu/url",
    method: "POST",
  })
}

